<div class="page-title area-col-white detail-page-title">
  <!--<nzi-breadcrumb nzPlacement="right" nz-popover [detailName]="data?.displayName"></nzi-breadcrumb>-->
  <!-- <nz-breadcrumb>
    <div class="light"></div>
    <div class="dark"></div>
    <nz-breadcrumb-item><a [routerLink]="['/application']">应用列表</a></nz-breadcrumb-item>
    <nz-breadcrumb-item nzPlacement="right" nz-popover [nzContent]="data?.displayName">{{data?.displayName || ''}}
    </nz-breadcrumb-item>
  </nz-breadcrumb> -->

  <nz-breadcrumb nzSeparator=" ">
    <nz-breadcrumb-item>
      <a [routerLink]="['/application']" class="breadcrumb_link">
        <i nz-icon nzType="arrow-left" nzTheme="outline" class="breadcrumb_i"></i>
      </a>
    </nz-breadcrumb-item>
    <nz-breadcrumb-item>
      <span class="head-05">{{data?.displayName || ''}}</span>
    </nz-breadcrumb-item>
  </nz-breadcrumb>

  <div class="page-title-opt pull-right to_top_btn" *ngIf="data?.id">
    <in-acl-source [inGroup]="'detailBtnAction'" [inService]="'fcs'" [inResourceType]="'fcs-group'"
      [inActions]="['UpdateGroup','DeleteGroup']" [inIsLast]="true" [inInstanceId]="data?.id"
      [inResourceAccountId]="data?.accountId" [inTrData]="data">
      <in-acl-source [inGroup]="'headerAction'" [inService]="'fcs'" [inResourceType]="'fcs-function'"
        [inActions]="['CreateFunction']" [inIsLast]="true" #headerAction>
        <in-acl-btn [inActions]="headerAction.resActions" inAction="CreateFunction" inLabel="创建函数">
          <button nz-button (click)="createFunction(data.id)">创建函数
          </button>
        </in-acl-btn>
  
  
        <in-acl-btn [inActions]="data?.resActions" inAction="UpdateGroup" inLabel="编辑">
          <button nz-button (click)="editApplication(data)">编辑
          </button>
        </in-acl-btn>
        <in-acl-btn [inActions]="data?.resActions" inAction="DeleteGroup" inLabel="删除">
          <button nz-button (click)="deleteApplication(data)">删除
          </button>
        </in-acl-btn>
      </in-acl-source>
    </in-acl-source>
  </div>
</div>
<nz-spin [nzSpinning]="isLoading">
  <div class="form-fieldset form-horizontal form-align-left mb8">
    <fieldset>
      <legend>
        基本信息
      </legend>
      <div class="form-static" nz-row>
        <div nz-col nzSpan="12">
          <div class="form-group">
            <label class="control-label col-em-7">应用名称：</label>
            <div class="col-em-offset-7">
              <p class="form-control-static">{{data?.displayName}}</p>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-em-7">区域：</label>
            <div class="col-em-offset-7">
              <p class="form-control-static">{{regionName || '--'}}</p>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-em-7">描述：</label>
            <div class="col-em-offset-7">
              <p class="form-control-static table-version-description">{{data?.description || '--'}}</p>
            </div>
          </div>
        </div>
        <div nz-col nzSpan="12">
          <div class="form-group">
            <label class="control-label col-em-7">创建时间：</label>
            <div class="col-em-offset-7">
              <p class="form-control-static">
                {{data?.createTime | date:'y-MM-dd HH:mm:ss' || '--'}}
              </p>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-em-7">更新时间：</label>
            <div class="col-em-offset-7">
              <p class="form-control-static">
                {{data?.updateTime | date:'y-MM-dd HH:mm:ss' || '--'}}
              </p>
            </div>
          </div>
        </div>
      </div>
    </fieldset>
  </div>
</nz-spin>
<div class="padding-content area-col-white">
  <in-acl-source [inGroup]="'fcsTheaderAction'" [inService]="'fcs'" [inResourceType]="'fcs-function'"
  [inActions]="['CreateFunction']" [inIsLast]="true" #fcsTheaderAction></in-acl-source>
  <app-fcs-table #fcsTable [groupId]="groupId" [groupDisplayName] ="data?.displayName" [showGroupName]="false" [regionName]="regionName" [currentRegion]="currentRegion" (voted)="formChildValue($event)" [inActions]="fcsTheaderAction?.resActions"></app-fcs-table>
</div>

